export const mapState = function(objOrArr){
    const obj = {};
    if(Array.isArray(objOrArr)){
        objOrArr.forEach(key=>{
            obj[key] = function(){
                return this.$store.state[key]
            }
        })
    }else{
        for(let key in objOrArr){
            obj[key] = function(){
                return objOrArr[key](this.$store.state);
            }
        }
    }
    return obj;

};
